package com.ptswitch.material.util;

import java.text.DecimalFormat;
import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtils {
	private static SimpleDateFormat dateFormat=new SimpleDateFormat();
	private static String pattern="yyyy - MM - dd, HH : mm";
	private static DecimalFormat decimalFormat=new DecimalFormat();
	private static String numPattern="000";
	public static String format(Date date){
		dateFormat.applyPattern(pattern);
		return dateFormat.format(date);
	}
	
	public static String format(int i){
		decimalFormat.applyPattern(numPattern);
		return decimalFormat.format(i);
	}
}
